package ar.frba.utn.diseñosistemas.TP2;

import java.util.ArrayList;

public class AerolineasSingleton {

	private static final AerolineasSingleton INSTANCE = new AerolineasSingleton();
	private ArrayList<IAerolinea> aerolineas;

	private AerolineasSingleton()
	{
		ArrayList<IAerolinea> adapters = new ArrayList<IAerolinea>();
		adapters.add(new LanchitaAdapter());
		
		this.setAerolineas(adapters);
	}
	
	public static AerolineasSingleton getInstance()
	{
		return INSTANCE;
	}
	
	public ArrayList<IAerolinea> getAerolineas() {
		return aerolineas;
	}
	public void setAerolineas(ArrayList<IAerolinea> aerolineas) {
		this.aerolineas = aerolineas;
	}
}
